
---@class GOAPTree
GOAPTree = {}

---构建一个节点
---@param handler ActionHandlerBase
function GOAPTree:CreateNode(handler)
    return GOAPTreeNode.new(handler);
end

---构建一个顶节点
function GOAPTree:CreateTopNode()
    GOAPTreeNode.ResetID();
    return GOAPTreeNode.new(nil);
end